# Enter the function code here

execute as @e[type=sheep,nbt={CustomName:'{"text":"jeb_"}'}] unless score @s jeb-init matches 1 run function java:jeb_score
execute as @e[type=sheep,nbt={CustomName:'{"text":"jeb_"}'}] if data entity @s {Sheared:1b} if score @s jeb-sheared matches 0 run function java:jeb_colour
execute as @e[type=sheep,nbt={CustomName:'{"text":"jeb_"}'}] if data entity @s {Sheared:0b} if score @s jeb-sheared matches 1 run function java:jeb_reset